//
//  BigCollectionViewCell.m
//  BeautifulShoppings
//
//  Created by GivenBmli on 16/9/5.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "BigCollectionViewCell.h"
#import "UIImageView+WebCache.h"
#import "PresentRightModel.h"
#import "TAMacro.h"
@implementation BigCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self  = [super initWithFrame:frame];
    if (self) {
        [self creatSubview:frame];
        
    }
    return self;
}

- (void)setPresentRightModel:(PresentRightModel *)presentRightModel{
    self.name.text = presentRightModel.name;
    [self.icon_url sd_setImageWithURL:[NSURL URLWithString:presentRightModel.icon_url] placeholderImage:[UIImage imageNamed:@"站位"]];
}

- (void)creatSubview:(CGRect)frame{
    self.name = [[UILabel alloc]initWithFrame:CGRectMake(- 10,SCREEN_WIDTH / 7 , SCREEN_WIDTH / 4, SCREEN_HEIGHT / 30)];
    self.name.textAlignment = 1;
    self.name.font = [UIFont systemFontOfSize:11];
    //  self.name.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.name];
    self.icon_url = [[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH / 35,0, SCREEN_WIDTH / 7, SCREEN_WIDTH / 7)];
    [self.contentView addSubview:self.icon_url];
    
    
}

@end
